<?php

namespace app\request;

use think\Validate;

class Resources extends Validate
{

    protected $scene = [
        'download' => ['game_type', 'mch_id', 'game_id', 'open_id', 'release_type'],
    ];


    protected $rule = [
        'game_type' => 'require',
        'mch_id' => 'require',
        'game_id' => 'require',
        'open_id' => 'require',
        'release_type' => 'require|in:0,1',
    ];


    protected $message = [
        'game_type.require' => '游戏类型不能为空',
        'mch_id.require' => '商户不能为空',
        'game_id.require' => '游戏不能为空',
        'open_id.require' => '开发者不能为空',
        'release_type.require' => '类型不能为空',
        'release_type.in' => '类型值不支持',
    ];

}